import { ref, unref } from 'vue'
import { pcConfigs } from '@ny-ui'
import i18n from '@/lang/pc/index' // i18n

const t = i18n.global.t

// 投保人配置
export const policyholderOption = ref([
  ...unref(pcConfigs.policyholderOptions),
  {
    field: 'serviceLine',
    value: '',
    components: 'PcInput',
    type: 'text',
    label: t('header.serviceLine'),
    inputAlign: 'right',
    placeholder: t('header.serviceLine'),
    required: true,
    span: {
      xs: 24,
      sm: 12,
      md: 8
    }
  }
])

// 被保人配置
// 单条配置数据
export const singleOption = ref(pcConfigs.insureInitConfig)
// 所有数据
export const insureOption = pcConfigs.insureOptions
